package model

import (
	"framework-server/global"
)

type SysApi struct {
	global.GVA_MODEL
	Path        string 		`json:"path" gorm:"comment:api路径"`                    // api路径
	Description string 		`json:"description" gorm:"comment:api中文描述"`           // api中文描述
	ApiGroup    string 		`json:"apiGroup" gorm:"comment:api组"`                 // api组
	Method      string 		`json:"method" gorm:"default:POST" gorm:"comment:方法"` // 方法:创建POST(默认)|查看GET|更新PUT|删除DELETE
	ButtonId    int    		`json:"buttonId" form:"buttonId" gorm:"not null;column:buttonId"`
	ButtonRefer SysButton   `json:"button" gorm:"comment:关联的标记;foreignKey:ButtonId"`
	Public		bool		`json:"public" gorm:"comment:是否是公共接口";default:0`
	MenuId      int    		`json:"menuId" form:"menuId" gorm:"not null;column:menuId"`
	MenuRefer   SysBaseMenu `json:"menu" gorm:"comment:关联的标记;foreignKey:MenuId"`
}
